<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
	String username = (String) session.getAttribute("username");//获取对象的用户名
	if (username == null) {
		response.sendRedirect("login.jsp");
	}
	String userMainPage = (String) request.getAttribute("userMainPage");
	if (userMainPage == null || userMainPage.equals("")) {
		userMainPage = "tips.jsp";
	}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>同行互评系统</title>
<link
	href="${pageContext.request.contextPath}/bootstrap/css/bootstrap.css"
	rel="stylesheet">
<script src="${pageContext.request.contextPath}/js/jQuery.js"></script>
<script src="${pageContext.request.contextPath}/js/login.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery.validation.min.js"></script>
<script type="text/javascript">
	function logoutcheck() {
		if (confirm("您确定要退出吗?")) {
			window.location.href = "logout.jsp"
		}
	}
</script>
<style type="text/css">
body {
	width: 100%;
	height: 100%;
background-image: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%); 
 
}
</style>
</head>

<body>
	<div class="container">
		<jsp:include page="userHead.jsp"></jsp:include>
		<jsp:include page="<%=userMainPage%>"></jsp:include>
		<!-- 	        跳转功能，userMainPage存放的是界面名字。 -->

	</div>

</body>
</html>
